#include  <cstdio>
#include  <cmath>

int main(int argc, char *argv[])
{
	int n;
	double x,y;
	scanf("%d",&n);

	for( int i = 0 ; i < n  ; ++i )
	{
		scanf("%lf%lf",&x,&y);
		double s = (x*x + y*y) * 3.14159 / 2;
		int year = s / 50;
		if( (int)s % 50 > 0 )
			year++;

		printf("Property %d: This property will begin eroding in year %d.\n",
				i+1, year);
	}
	
	printf("END OF OUTPUT.\n");
}
